import java.util.Scanner;

public class test1 {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		while(true){
			int n=sc.nextInt();
			int m=sc.nextInt();
			int[] arr=new int[n];
			//if(n+1==m){
				//throw new ArrayIndexOutOfBoundsException();
			//}
			System.out.println(arr[m+1]);
		}	
	}

}
